|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--org.quilt.graph.Connector
|
+--org.quilt.graph.ComplexConnector
A Connector holding a single edge plus a fixed size array of edges. This is a combination of the UnaryConnector and MultiConnector.
| Constructor Summary | |
ComplexConnector(Connector conn,
int n)
|
|
ComplexConnector(Edge e,
int n)
Constructor for a Connector with a single edge plus a fixed-size array of edges. |
|
| Method Summary | |
Edge |
getEdge()
Get the single edge. |
Edge |
getEdge(int n)
Get the Nth edge from the array. |
Vertex |
getTarget()
Get the target of the single edge. |
Vertex |
getTarget(int n)
Get the target of the Nth edge. |
void |
setTarget(Vertex v)
Change the target of the single edge. |
void |
setTarget(Vertex v,
int n)
Change the target of the Nth edge. |
int |
size()
Returns the number of edges in the connector EXCLUDING the preferred edge. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ComplexConnector(Edge e,
int n)
e - Becomes preferred edge of the connector.n - Number of edges in the array
public ComplexConnector(Connector conn,
int n)
| Method Detail |
public Edge getEdge()
getEdge in class Connectorpublic Vertex getTarget()
getTarget in class Connectorpublic void setTarget(Vertex v)
setTarget in class Connectorpublic Edge getEdge(int n)
public Vertex getTarget(int n)
public void setTarget(Vertex v,
int n)
public int size()
size in class Connector
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||